package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.ShoppingCart;

/**
 * @author ghy
 * @version v1.0
 * create on 2022/11/23 11:06
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 从购物车中减去指定菜品的数量
     * @param shoppingCart
     * @return
     */
    R sub(ShoppingCart shoppingCart);

    /**
     * 加入菜品或者套餐到购物车
     * @param shoppingCart
     * @return
     */
    R add(ShoppingCart shoppingCart);


}
